<!DOCTYPE html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=2"><meta name="theme-color" content="#222"><meta name="generator" content="Hexo 5.4.0"><link rel="apple-touch-icon" sizes="180x180" href="/hexoblog/images/apple-touch-icon-next.png"><link rel="icon" type="image/png" sizes="32x32" href="/hexoblog/images/favicon-32x32-next.png"><link rel="icon" type="image/png" sizes="16x16" href="/hexoblog/images/favicon-16x16-next.png"><link rel="mask-icon" href="/hexoblog/images/logo.svg" color="#222"><link rel="stylesheet" href="/hexoblog/css/main.css"><link rel="stylesheet" href="https://unpkg.com/@fortawesome/fontawesome-free@5.15.3/css/all.min.css"><link rel="stylesheet" href="https://unpkg.com/animate.css@3.1.1/animate.min.css"><link rel="stylesheet" href="https://unpkg.com/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css"><script class="hexo-configurations">var NexT=window.NexT||{},CONFIG={hostname:"linqiankun.github.io",root:"/hexoblog/",images:"/hexoblog/images",scheme:"Gemini",version:"8.3.0",exturl:!1,sidebar:{position:"left",display:"post",padding:18,offset:12},copycode:!0,bookmark:{enable:!0,color:"#222",save:"auto"},fancybox:!0,mediumzoom:!1,lazyload:!1,pangu:!0,comments:{style:"tabs",active:null,storage:!0,lazyload:!1,nav:null},motion:{enable:!0,async:!1,transition:{post_block:"fadeIn",post_header:"fadeInDown",post_body:"fadeInDown",coll_header:"fadeInLeft",sidebar:"fadeInUp"}},prism:!1,i18n:{placeholder:"搜索...",empty:"没有找到任何搜索结果：${query}",hits_time:"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）",hits:"找到 ${hits} 个搜索结果"},path:"/hexoblog/search.xml",localsearch:{enable:!0,trigger:"auto",top_n_per_article:1,unescape:!1,preload:!1}}</script><meta name="description" content="Before introducing the mqadmin management tool, the following points need to be declared:  The way of executing a command is:.&#x2F;mqadmin {command} {args} Almost all commands need to attach the -n option"><meta property="og:type" content="article"><meta property="og:title" content="Instructions on the use of mqadmin Management tools"><meta property="og:url" content="https://linqiankun.github.io/hexoblog/yuque/rocketMq/Instructions%20on%20the%20use%20of%20mqadmin%20Management%20tools/index.html"><meta property="og:site_name" content="Study"><meta property="og:description" content="Before introducing the mqadmin management tool, the following points need to be declared:  The way of executing a command is:.&#x2F;mqadmin {command} {args} Almost all commands need to attach the -n option"><meta property="og:locale" content="zh_CN"><meta property="article:published_time" content="2021-05-25T13:22:37.000Z"><meta property="article:modified_time" content="2024-05-15T02:18:04.350Z"><meta property="article:author" content="九分石人"><meta property="article:tag" content="Java"><meta name="twitter:card" content="summary"><link rel="canonical" href="https://linqiankun.github.io/hexoblog/yuque/rocketMq/Instructions%20on%20the%20use%20of%20mqadmin%20Management%20tools/"><script class="page-configurations">CONFIG.page={sidebar:"",isHome:!1,isPost:!0,lang:"zh-CN"}</script><title>Instructions on the use of mqadmin Management tools | Study</title><noscript><style>body{margin-top:2rem}.use-motion .collection-header,.use-motion .comments,.use-motion .menu-item,.use-motion .pagination,.use-motion .post-block,.use-motion .post-body,.use-motion .post-header,.use-motion .sidebar{visibility:visible}.use-motion .footer,.use-motion .header,.use-motion .site-brand-container .toggle{opacity:initial}.use-motion .custom-logo-image,.use-motion .site-subtitle,.use-motion .site-title{opacity:initial;top:initial}.use-motion .logo-line{transform:scaleX(1)}.search-pop-overlay,.sidebar-nav{display:none}.sidebar-panel{display:block}</style></noscript><link rel="alternate" href="/hexoblog/atom.xml" title="Study" type="application/atom+xml"><style>.darkmode--activated{--body-bg-color:#282828;--content-bg-color:#333;--card-bg-color:#555;--text-color:#ccc;--blockquote-color:#bbb;--link-color:#ccc;--link-hover-color:#eee;--brand-color:#ddd;--brand-hover-color:#ddd;--table-row-odd-bg-color:#282828;--table-row-hover-bg-color:#363636;--menu-item-bg-color:#555;--btn-default-bg:#222;--btn-default-color:#ccc;--btn-default-border-color:#555;--btn-default-hover-bg:#666;--btn-default-hover-color:#ccc;--btn-default-hover-border-color:#666;--highlight-background:#282b2e;--highlight-foreground:#a9b7c6;--highlight-gutter-background:#34393d;--highlight-gutter-foreground:#9ca9b6}.darkmode--activated img{opacity:.75}.darkmode--activated img:hover{opacity:.9}.darkmode--activated code{color:#69dbdc;background:0 0}button.darkmode-toggle{z-index:9999}.darkmode-ignore,img{display:flex!important}.beian img{display:inline-block!important}</style></head><body itemscope itemtype="http://schema.org/WebPage" class="use-motion"><div class="headband"></div><main class="main"><header class="header" itemscope itemtype="http://schema.org/WPHeader"><div class="header-inner"><div class="site-brand-container"><div class="site-nav-toggle"><div class="toggle" aria-label="切换导航栏" role="button"><span class="toggle-line"></span> <span class="toggle-line"></span> <span class="toggle-line"></span></div></div><div class="site-meta"><a href="/hexoblog/" class="brand" rel="start"><i class="logo-line"></i><h1 class="site-title">Study</h1><i class="logo-line"></i></a><p class="site-subtitle" itemprop="description">好好学习，天天向上！</p></div><div class="site-nav-right"><div class="toggle popup-trigger"><i class="fa fa-search fa-fw fa-lg"></i></div></div></div><nav class="site-nav"><ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/hexoblog/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li><li class="menu-item menu-item-about"><a href="/hexoblog/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a></li><li class="menu-item menu-item-tags"><a href="/hexoblog/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a></li><li class="menu-item menu-item-categories"><a href="/hexoblog/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a></li><li class="menu-item menu-item-archives"><a href="/hexoblog/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a></li><li class="menu-item menu-item-sitemap"><a href="/hexoblog/sitemap.xml" rel="section"><i class="fa fa-sitemap fa-fw"></i>站点地图</a></li><li class="menu-item menu-item-search"><a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索</a></li></ul></nav><div class="search-pop-overlay"><div class="popup search-popup"><div class="search-header"><span class="search-icon"><i class="fa fa-search"></i></span><div class="search-input-container"><input autocomplete="off" autocapitalize="off" maxlength="80" placeholder="搜索..." spellcheck="false" type="search" class="search-input"></div><span class="popup-btn-close" role="button"><i class="fa fa-times-circle"></i></span></div><div class="search-result-container no-result"><div class="search-result-icon"><i class="fa fa-spinner fa-pulse fa-5x"></i></div></div></div></div></div><div class="toggle sidebar-toggle" role="button"><span class="toggle-line"></span> <span class="toggle-line"></span> <span class="toggle-line"></span></div><aside class="sidebar"><div class="sidebar-inner sidebar-nav-active sidebar-toc-active"><ul class="sidebar-nav"><li class="sidebar-nav-toc">文章目录</li><li class="sidebar-nav-overview">站点概览</li></ul><div class="sidebar-panel-container"><div class="post-toc-wrap sidebar-panel"><div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link"><span class="nav-number">1.</span> <span class="nav-text">1 Topic related command instructions</span></a></li><li class="nav-item nav-level-2"><a class="nav-link"><span class="nav-number">2.</span> <span class="nav-text">2 Cluster related command instructions</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link"><span class="nav-number">2.0.1.</span> <span class="nav-text"></span></a></li></ol></li></ol><li class="nav-item nav-level-2"><a class="nav-link"><span class="nav-number">3.</span> <span class="nav-text">3 Broker related command instructions</span></a></li><li class="nav-item nav-level-2"><a class="nav-link"><span class="nav-number">4.</span> <span class="nav-text">4 Message related command instructions</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link"><span class="nav-number">4.0.1.</span> <span class="nav-text"></span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link"><span class="nav-number">5.</span> <span class="nav-text">5 Consumer and Consumer Group related command instructions</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link"><span class="nav-number">5.0.1.</span> <span class="nav-text"></span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link"><span class="nav-number">6.</span> <span class="nav-text">6 Connection related command instructions</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link"><span class="nav-number">6.0.1.</span> <span class="nav-text"></span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link"><span class="nav-number">7.</span> <span class="nav-text">7 NameServer related command instructions</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link"><span class="nav-number">7.0.1.</span> <span class="nav-text"></span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link"><span class="nav-number">8.</span> <span class="nav-text">8 Other relevant command notes</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link"><span class="nav-number">8.0.1.</span> <span class="nav-text"></span></a></li></ol></li></div></div><div class="site-overview-wrap sidebar-panel"><div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person"><img class="site-author-image" itemprop="image" alt="九分石人" src="/hexoblog/images/avatar.png"><p class="site-author-name" itemprop="name">九分石人</p><div class="site-description" itemprop="description">my blogs</div></div><div class="site-state-wrap site-overview-item animated"><nav class="site-state"><div class="site-state-item site-state-posts"><a href="/hexoblog/archives/"><span class="site-state-item-count">239</span> <span class="site-state-item-name">日志</span></a></div><div class="site-state-item site-state-categories"><a href="/hexoblog/categories/"><span class="site-state-item-count">35</span> <span class="site-state-item-name">分类</span></a></div><div class="site-state-item site-state-tags"><a href="/hexoblog/tags/"><span class="site-state-item-count">64</span> <span class="site-state-item-name">标签</span></a></div></nav></div><div class="links-of-author site-overview-item animated"><span class="links-of-author-item"><a href="https://github.com/linqiankun" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;linqiankun" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a> </span><span class="links-of-author-item"><a href="linqiankun:191580378@qq.com" title="E-Mail → linqiankun:191580378@qq.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a> </span><span class="links-of-author-item"><a href="https://weibo.com/jiufenshiren" title="Weibo → https:&#x2F;&#x2F;weibo.com&#x2F;jiufenshiren" rel="noopener" target="_blank"><i class="fab fa-weibo fa-fw"></i>Weibo</a> </span><span class="links-of-author-item"><a href="/hexoblog/atom.xml" title="Rss → &#x2F;atom.xml"><i class="fa fa-rss fa-fw"></i>Rss</a></span></div><div class="cc-license site-overview-item animated" itemprop="license"><a href="https://creativecommons.org/licenses/by-nc-sa/4.0/zh-CN" class="cc-opacity" rel="noopener" target="_blank"><img src="/hexoblog/images/cc-by-nc-sa.svg" alt="Creative Commons"></a></div><div class="links-of-blogroll site-overview-item animated"><div class="links-of-blogroll-title"><i class="fa fa-globe fa-fw"></i> Links</div><ul class="links-of-blogroll-list"><li class="links-of-blogroll-item"><a href="http://124.222.164.140:3001/workspace/hexoblog" title="http:&#x2F;&#x2F;124.222.164.140:3001&#x2F;workspace&#x2F;hexoblog" rel="noopener" target="_blank">AnythingLLM</a></li><li class="links-of-blogroll-item"><a href="https://www.yuque.com/jiufenshiren" title="https:&#x2F;&#x2F;www.yuque.com&#x2F;jiufenshiren" rel="noopener" target="_blank">YuQue</a></li><li class="links-of-blogroll-item"><a href="https://github.com/LinQiankun" title="https:&#x2F;&#x2F;github.com&#x2F;LinQiankun" rel="noopener" target="_blank">Github</a></li><li class="links-of-blogroll-item"><a href="https://gitee.com/linqiankun" title="https:&#x2F;&#x2F;gitee.com&#x2F;linqiankun" rel="noopener" target="_blank">Gitee</a></li><li class="links-of-blogroll-item"><a href="https://my.oschina.net/linqiankun" title="https:&#x2F;&#x2F;my.oschina.net&#x2F;linqiankun" rel="noopener" target="_blank">OsChina</a></li><li class="links-of-blogroll-item"><a href="https://segmentfault.com/u/jiufenshiren" title="https:&#x2F;&#x2F;segmentfault.com&#x2F;u&#x2F;jiufenshiren" rel="noopener" target="_blank">Segmentfault</a></li><li class="links-of-blogroll-item"><a href="https://juejin.cn/user/3263006243306205" title="https:&#x2F;&#x2F;juejin.cn&#x2F;user&#x2F;3263006243306205" rel="noopener" target="_blank">Juejin</a></li><li class="links-of-blogroll-item"><a href="https://blog.csdn.net/qq_36985536?spm=1010.2135.3001.5421" title="https:&#x2F;&#x2F;blog.csdn.net&#x2F;qq_36985536?spm&#x3D;1010.2135.3001.5421" rel="noopener" target="_blank">CSDN</a></li><li class="links-of-blogroll-item"><a href="https://www.cnblogs.com/jiufenshiren" title="https:&#x2F;&#x2F;www.cnblogs.com&#x2F;jiufenshiren" rel="noopener" target="_blank">CnBlogs</a></li><li class="links-of-blogroll-item"><a href="https://home.51cto.com/space?uid=12848310" title="https:&#x2F;&#x2F;home.51cto.com&#x2F;space?uid&#x3D;12848310" rel="noopener" target="_blank">51CTO</a></li></ul></div><script data-embed-id="94f790d6-f7ac-4d04-ad53-55d841525b5a" data-base-api-url="http://124.222.164.140:3001/api/embed" src="http://124.222.164.140:3001/embed/anythingllm-chat-widget.min.js"></script></div></div></div></aside><div class="sidebar-dimmer"></div></header><div class="back-to-top" role="button" aria-label="返回顶部"><i class="fa fa-arrow-up"></i> <span>0%</span></div><a role="button" class="book-mark-link book-mark-link-fixed"></a><noscript><div class="noscript-warning">Theme NexT works best with JavaScript enabled</div></noscript><div class="main-inner post posts-expand"><div class="post-block"><article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN"><link itemprop="mainEntityOfPage" href="https://linqiankun.github.io/hexoblog/yuque/rocketMq/Instructions%20on%20the%20use%20of%20mqadmin%20Management%20tools/"><span hidden itemprop="author" itemscope itemtype="http://schema.org/Person"><meta itemprop="image" content="/hexoblog/images/avatar.png"><meta itemprop="name" content="九分石人"><meta itemprop="description" content="my blogs"></span><span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization"><meta itemprop="name" content="Study"></span><header class="post-header"><h1 class="post-title" itemprop="name headline">Instructions on the use of mqadmin Management tools</h1><div class="post-meta-container"><div class="post-meta"><span class="post-meta-item"><span class="post-meta-item-icon"><i class="far fa-calendar"></i> </span><span class="post-meta-item-text">发表于</span> <time title="创建时间：2021-05-25 21:22:37 21:22:37" itemprop="dateCreated datePublished" datetime="2021-05-25T21:22:37+08:00">2021-05-25 21:22:37</time> </span><span class="post-meta-item"><span class="post-meta-item-icon"><i class="far fa-calendar-check"></i> </span><span class="post-meta-item-text">更新于</span> <time title="修改时间：2024-05-15 10:18:04 10:18:04" itemprop="dateModified" datetime="2024-05-15T10:18:04+08:00">2024-05-15 10:18:04</time> </span><span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv" style="display:none"><span class="post-meta-item-icon"><i class="far fa-eye"></i> </span><span class="post-meta-item-text">阅读次数：</span> <span id="busuanzi_value_page_pv"></span></span></div><div class="post-meta"><span class="post-meta-item" title="本文字数"><span class="post-meta-item-icon"><i class="far fa-file-word"></i> </span><span class="post-meta-item-text">本文字数：</span> <span>14k</span> </span><span class="post-meta-item" title="阅读时长"><span class="post-meta-item-icon"><i class="far fa-clock"></i> </span><span class="post-meta-item-text">阅读时长 &asymp;</span> <span>13 分钟</span></span></div></div></header><div class="post-body" itemprop="articleBody"><p>Before introducing the mqadmin management tool, the following points need to be declared:</p><ul><li>The way of executing a command is:./mqadmin {command} {args}</li><li>Almost all commands need to attach the -n option to represent the nameServer address, formatted as ip:port;</li><li>Almost all commands can get help information with the -h option;</li><li>If the broker address -b option and clusterName -c option are both configured with specific values, the command execution will select the broker address specified by -b option. The value of the -b option can only be configured with a single address. The format is ip:port. The default port value is 10911. If the value of the -b option is not configured, the command will be applied to all brokers in the entire cluster.</li><li>You can see many commands under tools, but not all commands can be used, only the commands initialized in MQAdminStartup can be used, you can also modify this class, add or customize commands;</li><li>Due to the issue of version update, a small number of commands may not be updated in time, please read the related command source code to eliminate and resolve the error.</li></ul><h2>1 Topic related command instructions</h2><table border="0" cellpadding="0" cellspacing="0" width="714"><colgroup><col width="177"><col width="175"><col width="177"><col width="185"><tr height="23" style="height:17pt"><td height="23" class="xl63" width="177" style="height:17pt;width:133pt">Name</td><td class="xl64" width="175" style="width:131pt">Meaning</td><td class="xl64" width="177" style="width:133pt">Command option</td><td class="xl64" width="185" style="width:139pt">Explain</td></tr><tr height="132" style="height:99pt"><td rowspan="8" height="593" class="xl68" width="163" style="border-bottom:1pt;height:444pt;border-top:none;width:122pt">updateTopic</td><td rowspan="8" class="xl70" width="135" style="border-bottom:1pt;border-top:none;width:101pt">Create or update the configuration of topic</td><td class="xl65" width="149" style="width:112pt">-b</td><td class="xl66" width="159" style="width:119pt">The -b option declares the specific address of the broker, indicating that the broker, in which the topic is located supports only a single broker and the address format is ip:port.</td></tr><tr height="132" style="height:99pt"><td height="132" class="xl65" width="149" style="height:99pt;width:112pt">-c</td><td class="xl66" width="159" style="width:119pt">The -c option declares the name of the cluster, which represents the cluster in which the current topic is located. (clusters are available through clusterList query)</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl65" width="149" style="height:17pt;width:112pt">-h-</td><td class="xl66" width="159" style="width:119pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl65" width="149" style="height:43pt;width:112pt">-n</td><td class="xl66" width="159" style="width:119pt">Declare the service address of the nameServer, and the option format is ip:port</td></tr><tr height="76" style="height:57pt"><td height="76" class="xl65" width="149" style="height:57pt;width:112pt">-p</td><td class="xl66" width="159" style="width:119pt">The -p option is used to specify the read and write permission for the new topic (W=2 | R=4 | WR=6)</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl65" width="149" style="height:29pt;width:112pt">-r</td><td class="xl66" width="159" style="width:119pt">The -r option declares the number of readable queues (default 8)</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl65" width="149" style="height:29pt;width:112pt">-w</td><td class="xl66" width="159" style="width:119pt">The -w option declares the number of writable queues (default 8)</td></tr><tr height="95" style="height:71pt"><td height="95" class="xl65" width="149" style="height:71pt;width:112pt">-t</td><td class="xl66" width="159" style="width:119pt">The -t option declares the name of the topic (the name can only use characters^ [a-zA-Z0-9s -] + $)</td></tr><tr height="132" style="height:99pt"><td rowspan="4" height="307" class="xl68" width="163" style="border-bottom:1pt;height:230pt;border-top:none;width:122pt">deleteTopic</td><td rowspan="4" class="xl70" width="135" style="border-bottom:1pt;border-top:none;width:101pt">Delete the topic command</td><td class="xl65" width="149" style="width:112pt">-c</td><td class="xl66" width="159" style="width:119pt">The -c option specifies the name of the cluster, which means that one of the topic in the specified cluster is deleted (cluster names can be queried via clusterList)</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl65" width="149" style="height:17pt;width:112pt">-h</td><td class="xl66" width="159" style="width:119pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl65" width="149" style="height:43pt;width:112pt">-n</td><td class="xl66" width="159" style="width:119pt">Declare the service address of the nameServer, and the option format is ip:port</td></tr><tr height="95" style="height:71pt"><td height="95" class="xl65" width="149" style="height:71pt;width:112pt">-t</td><td class="xl66" width="159" style="width:119pt">The -t option declares the name of the topic (the name can only use characters^ [a-zA-Z0-9s -] + $)</td></tr><tr height="23" style="height:17pt"><td rowspan="3" height="287" class="xl68" width="163" style="border-bottom:1pt;height:215pt;border-top:none;width:122pt">topicList</td><td rowspan="3" class="xl70" width="135" style="border-bottom:1pt;border-top:none;width:101pt">View topic list information</td><td class="xl65" width="149" style="width:112pt">-h</td><td class="xl66" width="159" style="width:119pt">Print help information</td></tr><tr height="207" style="height:155pt"><td height="207" class="xl65" width="149" style="height:155pt;width:112pt">-c</td><td class="xl66" width="159" style="width:119pt">If the -c option is not configured, only the topic list is returned, and the addition of -c option returns additional information about the clusterName, topic, consumerGroup, that is, the cluster and subscription to which the topic belongs, and no other option need to be configured.</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl65" width="149" style="height:43pt;width:112pt">-n</td><td class="xl66" width="159" style="width:119pt">Declare the service address of the nameServer, and the option format is ip:port</td></tr><tr height="23" style="height:17pt"><td rowspan="3" height="103" class="xl68" width="163" style="border-bottom:1pt;height:77pt;border-top:none;width:122pt">topicRoute</td><td rowspan="3" class="xl70" width="135" style="border-bottom:1pt;border-top:none;width:101pt">To view topic specific routing information</td><td class="xl65" width="149" style="width:112pt">-t</td><td class="xl66" width="159" style="width:119pt">Used to specify the name of the topic</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl65" width="149" style="height:17pt;width:112pt">-h</td><td class="xl66" width="159" style="width:119pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl65" width="149" style="height:43pt;width:112pt">-n</td><td class="xl66" width="159" style="width:119pt">Declare the service address of the nameServer, and the option format is ip:port</td></tr><tr height="23" style="height:17pt"><td rowspan="3" height="103" class="xl68" width="163" style="border-bottom:1pt;height:77pt;border-top:none;width:122pt">topicStatus</td><td rowspan="3" class="xl70" width="135" style="border-bottom:1pt;border-top:none;width:101pt">The location of the offset used to view the topic message queue</td><td class="xl65" width="149" style="width:112pt">-t</td><td class="xl66" width="159" style="width:119pt">Used to specify the name of the topic</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl65" width="149" style="height:17pt;width:112pt">-h</td><td class="xl66" width="159" style="width:119pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl65" width="149" style="height:43pt;width:112pt">-n</td><td class="xl66" width="159" style="width:119pt">Declare the service address of the nameServer, and the option format is ip:port</td></tr><tr height="23" style="height:17pt"><td rowspan="3" height="103" class="xl68" width="163" style="border-bottom:1pt;height:77pt;border-top:none;width:122pt">topicClusterList</td><td rowspan="3" class="xl70" width="135" style="border-bottom:1pt;border-top:none;width:101pt">To view the list of clusters to which topic belongs</td><td class="xl65" width="149" style="width:112pt">-t</td><td class="xl66" width="159" style="width:119pt">Used to specify the name of the topic</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl65" width="149" style="height:17pt;width:112pt">-h</td><td class="xl66" width="159" style="width:119pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl65" width="149" style="height:43pt;width:112pt">-n</td><td class="xl66" width="159" style="width:119pt">Declare the service address of the nameServer, and the option format is ip:port</td></tr><tr height="23" style="height:17pt"><td rowspan="6" height="518" class="xl68" width="163" style="border-bottom:1pt;height:380pt;border-top:none;width:122pt">updateTopicPerm</td><td rowspan="6" class="xl70" width="135" style="border-bottom:1pt;border-top:none;width:101pt">This command is used to update read and write permissions for topic</td><td class="xl65" width="149" style="width:112pt">-t</td><td class="xl66" width="159" style="width:119pt">Used to specify the name of the topic</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl65" width="149" style="height:17pt;width:112pt">-h</td><td class="xl66" width="159" style="width:119pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl65" width="149" style="height:43pt;width:112pt">-n</td><td class="xl66" width="159" style="width:119pt">Declare the service address of the nameServer, and the option format is ip:port</td></tr><tr height="132" style="height:99pt"><td height="132" class="xl65" width="149" style="height:99pt;width:112pt">-b</td><td class="xl66" width="159" style="width:119pt">The -b option declares the specific address of the broker, indicating that the broker, in which the topic is located supports only a single broker and the address format is ip:port.</td></tr><tr height="76" style="height:57pt"><td height="76" class="xl65" width="149" style="height:57pt;width:112pt">-p</td><td class="xl66" width="159" style="width:119pt">The -p option is used to specify the read and write permission for the new topic (W=2 | R=4 | WR=6)</td></tr><tr height="207" style="height:155pt"><td height="207" class="xl65" width="149" style="height:155pt;width:112pt">-c</td><td class="xl66" width="159" style="width:119pt">Used to specify the name of the cluster that represents the cluster in which the topic is located, which can be accessed through the clusterList query, but the -b parameter has a higher priority, and if no -b option related configuration is specified, the command is executed on all broker in the cluster</td></tr><tr height="23" style="height:17pt"><td rowspan="5" height="199" class="xl68" width="163" style="border-bottom:1pt;height:149pt;border-top:none;width:122pt">updateOrderConf</td><td rowspan="5" class="xl70" width="135" style="border-bottom:1pt;border-top:none;width:101pt">The key, value configuration that creates, deletes, and retrieves specific namespaces from nameServer is not yet enabled.</td><td class="xl65" width="149" style="width:112pt">-h</td><td class="xl66" width="159" style="width:119pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl65" width="149" style="height:43pt;width:112pt">-n</td><td class="xl66" width="159" style="width:119pt">Declare the service address of the nameServer, and the option format is ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl65" width="149" style="height:17pt;width:112pt">-t</td><td class="xl66" width="159" style="width:119pt">topic，key</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl65" width="149" style="height:29pt;width:112pt">-v</td><td class="xl66" width="159" style="width:119pt">orderConf，value</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl65" width="149" style="height:43pt;width:112pt">-m</td><td class="xl66" width="159" style="width:119pt">method，available values include get, put, delete</td></tr><tr height="23" style="height:17pt"><td rowspan="4" height="198" class="xl68" width="163" style="border-bottom:1pt;height:140pt;border-top:none;width:122pt">allocateMQ</td><td rowspan="4" class="xl70" width="135" style="border-bottom:1pt;border-top:none;width:101pt">Computing load result of load message queue in consumer list with average load algorithm</td><td class="xl65" width="149" style="width:112pt">-t</td><td class="xl66" width="159" style="width:119pt">Used to specify the name of the topic</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl65" width="149" style="height:17pt;width:112pt">-h</td><td class="xl66" width="159" style="width:119pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl65" width="149" style="height:43pt;width:112pt">-n</td><td class="xl66" width="159" style="width:119pt">Declare the service address of the nameServer, and the option format is ip:port</td></tr><tr height="95" style="height:71pt"><td height="95" class="xl65" width="149" style="height:71pt;width:112pt">-i</td><td class="xl66" width="159" style="width:119pt">IpList, is separated by commas to calculate which message queues these ip unload topic</td></tr><tr height="23" style="height:17pt"><td rowspan="4" height="142" class="xl68" width="163" style="border-bottom:1pt solid #000;height:106pt;border-top:1pt;width:122pt">statsAll</td><td rowspan="4" class="xl70" width="135" style="border-bottom:1pt;border-top:none;width:101pt">For printing topic subscription, TPS, cumulative amount, 24 hours read and write total, etc.</td><td class="xl65" width="149" style="width:112pt">-h</td><td class="xl66" width="159" style="width:119pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl65" width="149" style="height:43pt;width:112pt">-n</td><td class="xl66" width="159" style="width:119pt">Declare the service address of the nameServer, and the option format is ip:port</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl65" width="149" style="height:29pt;width:112pt">-a</td><td class="xl66" width="159" style="width:119pt">Whether to print only active topic</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl65" width="149" style="height:17pt;width:112pt">-t</td><td class="xl66" width="159" style="width:119pt">Used to specify the name of the topic</td></tr></colgroup></table><h2>2 Cluster related command instructions</h2><h4></h4><table border="0" cellpadding="0" cellspacing="0" width="714"><colgroup><col width="177"><col width="175"><col width="177"><col width="185"><tr height="23" style="height:17pt"><td height="23" class="xl63" width="177" style="height:17pt;width:133pt">Name</td><td class="xl64" width="175" style="width:131pt">Meaning</td><td class="xl64" width="177" style="width:133pt">Command option</td><td class="xl64" width="185" style="width:139pt">Explain</td></tr><tr height="207" style="height:155pt"><td rowspan="4" height="326" class="xl67" width="177" style="border-bottom:1pt;height:244pt;border-top:none;width:133pt"><span style="mso-spacerun:yes"></span>clusterList</td><td rowspan="4" class="xl70" width="175" style="border-bottom:1pt;border-top:none;width:131pt">View cluster information, cluster, brokerName, brokerId, TPS, and so on</td><td class="xl65" width="177" style="width:133pt">-m</td><td class="xl66" width="185" style="width:139pt">Print more information (add print to # InTotalYest, #OutTotalYest, #InTotalToday ,#OutTotalToday)</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl65" width="177" style="height:17pt;width:133pt">-h</td><td class="xl66" width="185" style="width:139pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl65" width="177" style="height:43pt;width:133pt">-n</td><td class="xl66" width="185" style="width:139pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl65" width="177" style="height:29pt;width:133pt">-i</td><td class="xl66" width="185" style="width:139pt">Print interval，unit basis is seconds</td></tr><tr height="95" style="height:71pt"><td rowspan="8" height="391" class="xl67" width="177" style="border-bottom:1pt;height:292pt;border-top:none;width:133pt">clusterRT</td><td rowspan="8" class="xl70" width="175" style="border-bottom:1pt;border-top:none;width:131pt">Send message to detect each broker RT of the cluster.the message send to ${BrokerName} Topic</td><td class="xl65" width="177" style="width:133pt">-a</td><td class="xl66" width="185" style="width:139pt">amount，total number per probe，RT = Total time/amount</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl65" width="177" style="height:29pt;width:133pt">-s</td><td class="xl66" width="185" style="width:139pt">Message size，unit basis is B</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl65" width="177" style="height:17pt;width:133pt">-c</td><td class="xl66" width="185" style="width:139pt">Which cluster to detect.</td></tr><tr height="76" style="height:57pt"><td height="76" class="xl65" width="177" style="height:57pt;width:133pt">-p</td><td class="xl66" width="185" style="width:139pt">Whether to print the formatted log,split with "|", not printed by default</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl65" width="177" style="height:17pt;width:133pt">-h</td><td class="xl66" width="185" style="width:139pt">Print help information</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl65" width="177" style="height:29pt;width:133pt">-m</td><td class="xl66" width="185" style="width:139pt">Owned computer room for printing</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl65" width="177" style="height:29pt;width:133pt">-i</td><td class="xl66" width="185" style="width:139pt">The interval, in seconds, at which a message is sent.</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl65" width="177" style="height:43pt;width:133pt">-n</td><td class="xl66" width="185" style="width:139pt">Service address used to specify nameServer and formatted as ip:port</td></tr></colgroup></table><h2>3 Broker related command instructions</h2><table border="0" cellpadding="0" cellspacing="0" width="714"><colgroup><col width="177"><col width="175"><col width="177"><col width="185"><tr height="23" style="height:17pt"><td height="23" class="xl63" width="177" style="height:17pt;width:133pt">Name</td><td class="xl64" width="175" style="width:131pt">Meaning</td><td class="xl64" width="177" style="width:133pt">Command option</td><td class="xl64" width="185" style="width:139pt">Explain</td></tr><tr height="57" style="height:43pt"><td rowspan="6" height="206" class="xl69" width="191" style="border-bottom:1pt;height:154pt;border-top:none;width:143pt">updateBrokerConfig</td><td rowspan="6" class="xl72" width="87" style="border-bottom:1pt;border-top:none;width:65pt">The configuration information used to update the broker and the contents of the Broker.conf file are modified</td><td class="xl67" width="87" style="width:65pt">-b</td><td class="xl68" width="87" style="width:65pt">Declare the address of the broker and format as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-c</td><td class="xl68" width="87" style="width:65pt">Specify the name of the cluster</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-k</td><td class="xl68" width="87" style="width:65pt">the value of k</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-v</td><td class="xl68" width="87" style="width:65pt">the value of value</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="57" style="height:43pt"><td rowspan="3" height="137" class="xl69" width="191" style="border-bottom:1pt;height:103pt;border-top:none;width:143pt">brokerStatus</td><td rowspan="3" class="xl72" width="87" style="border-bottom:1pt;border-top:none;width:65pt">For viewing broker related statistics and running status (almost all the information you want is inside)</td><td class="xl67" width="87" style="width:65pt">-b</td><td class="xl68" width="87" style="width:65pt">Declare the address of the broker and format as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="57" style="height:43pt"><td rowspan="6" height="256" class="xl69" width="191" style="border-bottom:1pt;height:192pt;border-top:none;width:143pt">brokerConsumeStats</td><td rowspan="6" class="xl72" width="87" style="border-bottom:1pt;border-top:none;width:65pt">Get the consumption of each consumer in broker and return information such as consume Offset,broker Offset,diff,timestamp by message queue dimension</td><td class="xl67" width="87" style="width:65pt">-b</td><td class="xl68" width="87" style="width:65pt">Declare the address of the broker and format as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-t</td><td class="xl68" width="87" style="width:65pt">Configure the timeout of the request</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-l</td><td class="xl68" width="87" style="width:65pt">Configure the diff threshold beyond which to print</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-o</td><td class="xl68" width="87" style="width:65pt">Specifies whether the order topic, is typically false</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="57" style="height:43pt"><td rowspan="2" height="114" class="xl69" width="191" style="border-bottom:1pt;height:86pt;border-top:none;width:143pt">getBrokerConfig</td><td rowspan="2" class="xl72" width="87">Get configuration information for the broker</td><td class="xl67" width="87" style="width:65pt">-b</td><td class="xl68" width="87" style="width:65pt">Declare the address of the broker and format as ip:port</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="57" style="height:43pt"><td rowspan="3" height="137" class="xl69" width="191" style="border-bottom:1pt;height:103pt;border-top:none;width:143pt">wipeWritePerm</td><td rowspan="3" class="xl72" width="87">Clear write permissions for broker from nameServer</td><td class="xl67" width="87" style="width:65pt">-b</td><td class="xl68" width="87" style="width:65pt">Declare the BrokerName</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td rowspan="4" height="160" class="xl69" width="191" style="border-bottom:1pt;height:120pt;border-top:none;width:143pt">cleanExpiredCQ</td><td rowspan="4" class="xl72" width="87">Clean up expired consume Queue on broker，An expired queue may be generated if the number of columns is reduced manually</td><td class="xl67" width="87" style="width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-b</td><td class="xl68" width="87" style="width:65pt">Declare the address of the broker and format as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-c</td><td class="xl68" width="87" style="width:65pt">Used to specify the name of the cluster</td></tr><tr height="88" style="mso-height-source:userset;height:66pt"><td rowspan="4" height="191" class="xl69" width="191" style="border-bottom:1pt;height:143pt;border-top:none;width:143pt">cleanUnusedTopic</td><td rowspan="4" class="xl72" width="87">Clean up unused topic on broker and release topic's consume Queue from memory，If the topic is removed manually, an unused topic will be generated</td><td class="xl67" width="87" style="width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-b</td><td class="xl68" width="87" style="width:65pt">Declare the address of the broker and format as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-c</td><td class="xl68" width="87" style="width:65pt">Used to specify the name of the cluster</td></tr><tr height="57" style="height:43pt"><td rowspan="5" height="199" class="xl69" width="191" style="border-bottom:1pt;height:149pt;border-top:none;width:143pt">sendMsgStatus</td><td rowspan="5" class="xl72" width="87">Send a message to the broker and then return the send status and RT</td><td class="xl67" width="87" style="width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-b</td><td class="xl68" width="87" style="width:65pt">brokerName，note that this is not broker's address</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-s</td><td class="xl68" width="87" style="width:65pt">Message size，the unit of account is B</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-c</td><td class="xl68" width="87" style="width:65pt">Number of messages sent</td></tr></colgroup></table><h2>4 Message related command instructions</h2><h4></h4><table border="0" cellpadding="0" cellspacing="0" width="714"><colgroup><col width="177"><col width="175"><col width="177"><col width="185"><tr height="23" style="height:17pt"><td height="23" class="xl63" width="177" style="height:17pt;width:133pt">Name</td><td class="xl64" width="175" style="width:131pt">Meaning</td><td class="xl64" width="177" style="width:133pt">Command option</td><td class="xl64" width="185" style="width:139pt">Explain</td></tr><tr height="128" style="height:96pt"><td rowspan="3" height="208" class="xl69" width="87" style="border-bottom:1pt;height:156pt;border-top:none;width:65pt">queryMsgById</td><td rowspan="3" class="xl72" width="87" style="border-bottom:1pt;border-top:none;width:65pt">Query msg according to offsetMsgId. If you use open source console, you should use offsetMsgId. There are other parameters for this command. For details, please read QueryMsgByIdSubCommand.</td><td class="xl67" width="87" style="width:65pt">-i</td><td class="xl67" width="87" style="width:65pt">msgId</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td rowspan="4" height="126" class="xl69" width="87" style="border-bottom:1pt;height:94pt;border-top:none;width:65pt">queryMsgByKey</td><td rowspan="4" class="xl72" width="87" style="border-bottom:1pt;border-top:none;width:65pt">Query messages based on message Key</td><td class="xl67" width="87" style="width:65pt">-k</td><td class="xl67" width="87" style="width:65pt">msgKey</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-t</td><td class="xl68" width="87" style="width:65pt">The name of the topic</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="225" style="height:169pt"><td rowspan="6" height="390" class="xl69" width="87" style="border-bottom:1pt;height:292pt;border-top:none;width:65pt">queryMsgByOffset</td><td rowspan="6" class="xl72" width="87" style="border-bottom:1pt;border-top:none;width:65pt">Query messages based on Offset</td><td class="xl67" width="87" style="width:65pt">-b</td><td class="xl68" width="87" style="width:65pt">The name of broker,(Note here: the name of broker is filled in, not the address of broker, and the broker name can be found in clusterList)</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-i</td><td class="xl68" width="87" style="width:65pt">Queue id of the query</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-o</td><td class="xl68" width="87" style="width:65pt">The value of offset</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-t</td><td class="xl68" width="87" style="width:65pt">The name of the topic</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="47"><td rowspan="6" height="209" class="xl69" width="87" style="border-bottom:1pt;height:156pt;border-top:none;width:65pt">queryMsgByUniqueKey</td><td rowspan="6" class="xl72" width="87" style="border-bottom:1pt;border-top:none;width:65pt">According to the msgId query, msgId is different from offsetMsgId. The specific differences can be found in common operational and maintenance problems. "-g" option and "-d" option are to be used together, and when you find the message, try to get a particular consumer to consume the message and return the result of the consumption.</td><td class="xl67" width="87" style="width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-i</td><td class="xl67" width="87" style="width:65pt">uniqe msg id</td></tr><tr height="36" style="height:27pt"><td height="36" class="xl67" width="87" style="height:27pt;width:65pt">-g</td><td class="xl67" width="87" style="width:65pt">consumerGroup</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-d</td><td class="xl67" width="87" style="width:65pt">clientId</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-t</td><td class="xl68" width="87" style="width:65pt">The name of the topic</td></tr><tr height="23" style="height:17pt"><td rowspan="5" height="149" class="xl69" width="87">checkMsgSendRT</td><td rowspan="5" class="xl72" width="87" style="border-bottom:1pt;border-top:none;width:65pt">Detect RT to send a message to topic, function similar to clusterRT</td><td class="xl67" width="87" style="width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-t</td><td class="xl68" width="87" style="width:65pt">The name of the topic</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-a</td><td class="xl68" width="87" style="width:65pt">the number of probes</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-s</td><td class="xl68" width="87" style="width:65pt">The size of message</td></tr><tr height="23" style="height:17pt"><td rowspan="8" height="218" class="xl69" width="87" style="border-bottom:1pt;height:162pt;border-top:none;width:65pt">sendMessage</td><td rowspan="8" class="xl72" width="87" style="border-bottom:1pt;border-top:none;width:65pt">Send a message that can be sent, as configured, to a particular message Queue, or to a normal send.</td><td class="xl67" width="87" style="width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-t</td><td class="xl68" width="87" style="width:65pt">The name of the topic</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-p</td><td class="xl68" width="87" style="width:65pt">body，message body</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-k</td><td class="xl67" width="87" style="width:65pt">keys</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-c</td><td class="xl67" width="87" style="width:65pt">tags</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-b</td><td class="xl67" width="87" style="width:65pt">brokerName</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-i</td><td class="xl67" width="87" style="width:65pt">queueId</td></tr><tr height="23" style="height:17pt"><td rowspan="10" height="312" class="xl69" width="87" style="border-bottom:1pt;height:232pt;border-top:none;width:65pt">consumeMessage</td><td rowspan="10" class="xl72" width="87" style="border-bottom:1pt;border-top:none;width:65pt">Consumer messages. You can consume messages based on offset, start timestamps, end timestamps, message queues, and configure different consumption logic for different execution, as detailed in ConsumeMessageCommand.</td><td class="xl67" width="87" style="width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-t</td><td class="xl68" width="87" style="width:65pt">The name of the topic</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-b</td><td class="xl67" width="87" style="width:65pt">brokerName</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-o</td><td class="xl68" width="87" style="width:65pt">Start consumption from offset</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-i</td><td class="xl67" width="87" style="width:65pt">queueId</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-g</td><td class="xl68" width="87" style="width:65pt">Group of consumers</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-s</td><td class="xl68" width="87" style="width:65pt">Specify a start timestamp in a format see -h</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-d</td><td class="xl68" width="87" style="width:65pt">Specify a end timestamp</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-c</td><td class="xl68" width="87" style="width:65pt">Specify how many messages to consume</td></tr><tr height="23" style="height:17pt"><td rowspan="8" height="282" class="xl69" width="87" style="border-bottom:1pt;height:210pt;border-top:none;width:65pt">printMsg</td><td rowspan="8" class="xl72" width="87" style="border-bottom:1pt;border-top:none;width:65pt">Consume messages from broker and print them, optional time periods</td><td class="xl67" width="87" style="width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-t</td><td class="xl68" width="87" style="width:65pt">The name of the topic</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-c</td><td class="xl68" width="87" style="width:65pt">Character set，for example UTF-8</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-s</td><td class="xl68" width="87" style="width:65pt">subExpress，filter expression</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-b</td><td class="xl68" width="87" style="width:65pt">Specify a start timestamp in a format see -h</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-e</td><td class="xl68" width="87" style="width:65pt">Specify the end timestamp</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-d</td><td class="xl68" width="87" style="width:65pt">Whether to print the message body</td></tr><tr height="23" style="height:17pt"><td rowspan="12" height="390" class="xl69" width="87" style="border-bottom:1pt;height:290pt;border-top:none;width:65pt">printMsgByQueue</td><td rowspan="12" class="xl72" width="87" style="border-bottom:1pt;border-top:none;width:65pt">Similar to printMsg, but specifying message queue</td><td class="xl67" width="87" style="width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-t</td><td class="xl68" width="87" style="width:65pt">The name of the topic</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-i</td><td class="xl67" width="87" style="width:65pt">queueId</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-a</td><td class="xl67" width="87" style="width:65pt">brokerName</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-c</td><td class="xl68" width="87" style="width:65pt">Character set，for example UTF-8</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-s</td><td class="xl68" width="87" style="width:65pt">subExpress，filter expression</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-b</td><td class="xl68" width="87" style="width:65pt">Specify a start timestamp in a format see -h</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-e</td><td class="xl68" width="87" style="width:65pt">Specify the end timestamp</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-p</td><td class="xl68" width="87" style="width:65pt">Whether to print a message</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-d</td><td class="xl68" width="87" style="width:65pt">Whether to print the message body</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-f</td><td class="xl68" width="87" style="width:65pt">Whether to count the number of tags and print</td></tr><tr height="23" style="height:17pt"><td rowspan="7" height="410" class="xl69" width="87" style="border-bottom:1pt;height:307pt;border-top:none;width:65pt">resetOffsetByTime</td><td rowspan="7" class="xl72" width="87" style="border-bottom:1pt;border-top:none;width:65pt">Reset both offset,broker and consumer by timestamp</td><td class="xl67" width="87" style="width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-g</td><td class="xl68" width="87" style="width:65pt">Group of consumers</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-t</td><td class="xl68" width="87" style="width:65pt">The name of the topic</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-s</td><td class="xl68" width="87" style="width:65pt">Resets the offset corresponding to this timestamp</td></tr><tr height="188" style="height:141pt"><td height="188" class="xl67" width="87" style="height:141pt;width:65pt">-f</td><td class="xl68" width="87" style="width:65pt">Whether to force a reset, if set to false, only supports backtracking offset, if it is true, regardless of the relationship between offset and consume Offset with the timestamp</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-c</td><td class="xl68" width="87" style="width:65pt">Whether to reset the C++ client offset</td></tr></colgroup></table><h2>5 Consumer and Consumer Group related command instructions</h2><h4></h4><table border="0" cellpadding="0" cellspacing="0" width="714"><colgroup><col width="177"><col width="175"><col width="177"><col width="185"><tr height="23" style="height:17pt"><td height="23" class="xl63" width="177" style="height:17pt;width:133pt">Name</td><td class="xl64" width="175" style="width:131pt">Meaning</td><td class="xl64" width="177" style="width:133pt">Command option</td><td class="xl64" width="185" style="width:139pt">Explain</td></tr><tr height="39" style="height:29pt"><td rowspan="4" height="158" class="xl69" width="87" style="border-bottom:1pt;height:110pt;border-top:none;width:65pt">consumerProgress</td><td rowspan="4" class="xl72" width="87" style="border-bottom:1pt;border-top:none;width:65pt">To view the subscriber consumption status, you can see the amount of message accumulation for a specific client IP</td><td class="xl67" width="87" style="width:65pt">-g</td><td class="xl68" width="87" style="width:65pt">The group name of consumer</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-s</td><td class="xl68" width="87" style="width:65pt">Whether to print client IP</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="105" style="mso-height-source:userset;height:79pt"><td rowspan="5" height="260" class="xl69" width="87" style="border-bottom:1pt;height:195pt;border-top:none;width:65pt">consumerStatus</td><td rowspan="5" class="xl72" width="87">See the consumer status, including whether the same subscription is in the same group, analyze whether the process queue is stacked, return the consumer jstack results, more content, and see ConsumerStatusSubCommand for the user</td><td class="xl67" width="87" style="width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="36" style="height:27pt"><td height="36" class="xl67" width="87" style="height:27pt;width:65pt">-g</td><td class="xl67" width="87" style="width:65pt">consumer group</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-i</td><td class="xl67" width="87" style="width:65pt">clientId</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-s</td><td class="xl68" width="87" style="width:65pt">Whether to execute jstack</td></tr><tr height="39" style="height:29pt"><td rowspan="5" height="181" class="xl69" width="87">getConsumerStatus</td><td rowspan="5" class="xl72" width="87">Get Consumer consumption progress</td><td class="xl67" width="87" style="width:65pt">-g</td><td class="xl68" width="87" style="width:65pt">the group name of consumer</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-t</td><td class="xl68" width="87" style="width:65pt">Query topic</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-i</td><td class="xl68" width="87" style="width:65pt">Ip address of consumer client</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td rowspan="13" height="761" class="xl69" width="87">updateSubGroup</td><td rowspan="13" class="xl72" width="87">Update or create a subscription</td><td class="xl67" width="87" style="width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-b</td><td class="xl68" width="87" style="width:65pt">the address of broker</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-c</td><td class="xl68" width="87" style="width:65pt">The name of cluster</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-g</td><td class="xl68" width="87" style="width:65pt">The group name of consumer</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-s</td><td class="xl68" width="87" style="width:65pt">Whether the group is allowed to consume</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-m</td><td class="xl68" width="87" style="width:65pt">Whether to start consumption from the minimum offset</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-d</td><td class="xl68" width="87" style="width:65pt">Is it a broadcast mode</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-q</td><td class="xl68" width="87" style="width:65pt">The Number of retry queues</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-r</td><td class="xl68" width="87" style="width:65pt">Maximum number of retries</td></tr><tr height="207" style="height:155pt"><td height="207" class="xl67" width="87" style="height:155pt;width:65pt">-i</td><td class="xl68" width="87" style="width:65pt">When the slaveReadEnable is on and which brokerId consumption is recommended for consumption from slave, the brokerid of slave, can be configured to consume from the slave actively</td></tr><tr height="132" style="height:99pt"><td height="132" class="xl67" width="87" style="height:99pt;width:65pt">-w</td><td class="xl68" width="87" style="width:65pt">If broker recommends consumption from slave, configuration determines which slave consumption to consume from, and configure a specific brokerId, such as 1</td></tr><tr height="76" style="height:57pt"><td height="76" class="xl67" width="87" style="height:57pt;width:65pt">-a</td><td class="xl68" width="87" style="width:65pt">Whether to notify other consumers of load balancing when the number of consumers changes</td></tr><tr height="57" style="height:43pt"><td rowspan="5" height="165" class="xl69" width="87">deleteSubGroup</td><td rowspan="5" class="xl72" width="87">Remove subscriptions from broker</td><td class="xl67" width="87" style="width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-b</td><td class="xl68" width="87" style="width:65pt">the address of broker</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-c</td><td class="xl68" width="87" style="width:65pt">The name of cluster</td></tr><tr height="39" style="height:29pt"><td height="39" class="xl67" width="87" style="height:29pt;width:65pt">-g</td><td class="xl68" width="87" style="width:65pt">The group name of consumer</td></tr><tr height="57" style="height:43pt"><td rowspan="6" height="172" class="xl69" width="87">cloneGroupOffset</td><td rowspan="6" class="xl72" width="87">Use the offset of the source group in the target group</td><td class="xl67" width="87" style="width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-s</td><td class="xl68" width="87" style="width:65pt">Source consumer group</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-d</td><td class="xl68" width="87" style="width:65pt">Target consumer group</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-t</td><td class="xl68" width="87" style="width:65pt">The name of topic</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-o</td><td class="xl68" width="87" style="width:65pt">Not used yet</td></tr></colgroup></table><h2>6 Connection related command instructions</h2><h4></h4><table border="0" cellpadding="0" cellspacing="0" width="714"><colgroup><col width="177"><col width="175"><col width="177"><col width="185"><tr height="23" style="height:17pt"><td height="23" class="xl63" width="177" style="height:17pt;width:133pt">Name</td><td class="xl64" width="175" style="width:131pt">Meaning</td><td class="xl64" width="177" style="width:133pt">Command option</td><td class="xl64" width="185" style="width:139pt">Explain</td></tr><tr height="39" style="height:29pt"><td rowspan="3" height="119" class="xl69" width="87">consumerConnection</td><td rowspan="3" class="xl72" width="87">Query the network connection of consumer</td><td class="xl67" width="87" style="width:65pt">-g</td><td class="xl68" width="87" style="width:65pt">The group name of consumer</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="39" style="height:29pt"><td rowspan="4" height="142" class="xl69" width="87">producerConnection</td><td rowspan="4" class="xl72" width="87">Query the network connection of producer</td><td class="xl67" width="87" style="width:65pt">-g</td><td class="xl68" width="87" style="width:65pt">the group name of producer</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-t</td><td class="xl68" width="87" style="width:65pt">The name of topic</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr></colgroup></table><h2>7 NameServer related command instructions</h2><h4></h4><table border="0" cellpadding="0" cellspacing="0" width="714"><colgroup><col width="177"><col width="175"><col width="177"><col width="185"><tr height="23" style="height:17pt"><td height="23" class="xl63" width="177" style="height:17pt;width:133pt">Name</td><td class="xl64" width="175" style="width:131pt">Meaning</td><td class="xl64" width="177" style="width:133pt">Command option</td><td class="xl64" width="185" style="width:139pt">Explain</td></tr><tr height="21" style="height:16pt"><td rowspan="5" height="143" class="xl69" width="87">updateKvConfig</td><td rowspan="5" class="xl72" width="87">Update the kv configuration of nameServer, which is not currently used</td><td class="xl75" width="87" style="width:65pt">-s</td><td class="xl76" width="87" style="width:65pt">Specify a specific namespace</td></tr><tr height="21" style="height:16pt"><td height="21" class="xl75" width="87" style="height:16pt;width:65pt">-k</td><td class="xl75" width="87" style="width:65pt">key</td></tr><tr height="21" style="height:16pt"><td height="21" class="xl75" width="87" style="height:16pt;width:65pt">-v</td><td class="xl75" width="87" style="width:65pt">value</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="23" style="height:17pt"><td rowspan="4" height="126" class="xl69" width="87">deleteKvConfig</td><td rowspan="4" class="xl72" width="87">Delete the kv configuration of nameServer</td><td class="xl67" width="87" style="width:65pt">-s</td><td class="xl68" width="87" style="width:65pt">Specify a specific namespace</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-k</td><td class="xl67" width="87" style="width:65pt">key</td></tr><tr height="57" style="height:43pt"><td height="57" class="xl67" width="87" style="height:43pt;width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td rowspan="2" height="80" class="xl69" width="87">getNamesrvConfig</td><td rowspan="2" class="xl72" width="87">Get the configuration of the nameServer</td><td class="xl67" width="87" style="width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="57" style="height:43pt"><td rowspan="4" height="126" class="xl69" width="87">updateNamesrvConfig</td><td rowspan="4" class="xl72" width="87">Modifying the configuration of nameServer</td><td class="xl67" width="87" style="width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-k</td><td class="xl67" width="87" style="width:65pt">The value of key</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-v</td><td class="xl67" width="87" style="width:65pt">The value of value</td></tr></colgroup></table><h2>8 Other relevant command notes</h2><h4></h4><table border="0" cellpadding="0" cellspacing="0" width="714"><colgroup><col width="177"><col width="175"><col width="177"><col width="185"><tr height="23" style="height:17pt"><td height="23" class="xl63" width="177" style="height:17pt;width:133pt">Name</td><td class="xl64" width="175" style="width:131pt">Meaning</td><td class="xl64" width="177" style="width:133pt">Command option</td><td class="xl64" width="185" style="width:139pt">Explain</td></tr><tr height="57" style="height:43pt"><td rowspan="2" height="80" class="xl69" width="87">startMonitoring</td><td rowspan="2" class="xl71" width="87">Used to start the monitoring process, monitor message deletion, retry queue messages, etc.</td><td class="xl67" width="87" style="width:65pt">-n</td><td class="xl68" width="87" style="width:65pt">Service address used to specify nameServer and formatted as ip:port</td></tr><tr height="23" style="height:17pt"><td height="23" class="xl67" width="87" style="height:17pt;width:65pt">-h</td><td class="xl68" width="87" style="width:65pt">Print help information</td></tr></colgroup></table></div><footer class="post-footer"><div class="post-copyright"><ul><li class="post-copyright-author"><strong>本文作者： </strong>九分石人</li><li class="post-copyright-link"><strong>本文链接：</strong> <a href="https://linqiankun.github.io/hexoblog/yuque/rocketMq/Instructions%20on%20the%20use%20of%20mqadmin%20Management%20tools/" title="Instructions on the use of mqadmin Management tools">https://linqiankun.github.io/hexoblog/yuque/rocketMq/Instructions on the use of mqadmin Management tools/</a></li><li class="post-copyright-license"><strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/zh-CN" rel="noopener" target="_blank"><i class="fab fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！</li></ul></div><div class="followme"><span>欢迎关注我的其它发布渠道</span><div class="social-list"><div class="social-item"><a target="_blank" class="social-link" href="https://github.com/linqiankun"><span class="icon"><i class="fab fa-github"></i> </span><span class="label">GitHub</span></a></div><div class="social-item"><a target="_blank" class="social-link" href="https://gitee.com/linqiankun"><span class="icon"><i class="fab fa-git"></i> </span><span class="label">Gitee</span></a></div><div class="social-item"><a target="_blank" class="social-link" href="/hexoblog/images/thefive.jpg"><span class="icon"><i class="fab fa-weixin"></i> </span><span class="label">WeChat</span></a></div><div class="social-item"><a target="_blank" class="social-link" href="/hexoblog/atom.xml"><span class="icon"><i class="fa fa-rss"></i> </span><span class="label">RSS</span></a></div></div></div><div class="post-nav"><div class="post-nav-item"><a href="/hexoblog/yuque/rocketMq/%E2%80%9CRequest-Reply%E2%80%9D%E7%89%B9%E6%80%A7/" rel="prev" title="“Request-Reply”特性"><i class="fa fa-chevron-left"></i> “Request-Reply”特性</a></div><div class="post-nav-item"><a href="/hexoblog/yuque/rocketMq/Basic%20Concept/" rel="next" title="Basic Concept">Basic Concept <i class="fa fa-chevron-right"></i></a></div></div></footer></article></div><script>window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      const activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      const commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }</script></div></main><footer class="footer"><div class="footer-inner"><div class="copyright">&copy; Tue Mar 02 2021 08:00:00 GMT+0800 (中国标准时间) – <span itemprop="copyrightYear">2025</span> <span class="with-love"><i class="fa fa-heart"></i> </span><span class="author" itemprop="copyrightHolder">九分石人</span></div><div class="wordcount"><span class="post-meta-item"><span class="post-meta-item-icon"><i class="fa fa-chart-line"></i> </span><span title="站点总字数">682k</span> </span><span class="post-meta-item"><span class="post-meta-item-icon"><i class="fa fa-coffee"></i> </span><span title="站点阅读时长">10:20</span></span></div><div class="busuanzi-count"><span class="post-meta-item" id="busuanzi_container_site_uv" style="display:none"><span class="post-meta-item-icon"><i class="fa fa-user"></i> </span><span class="site-uv" title="总访客量"><span id="busuanzi_value_site_uv"></span> </span></span><span class="post-meta-item" id="busuanzi_container_site_pv" style="display:none"><span class="post-meta-item-icon"><i class="fa fa-eye"></i> </span><span class="site-pv" title="总访问量"><span id="busuanzi_value_site_pv"></span></span></span></div></div></footer><script size="300" alpha="0.6" zindex="-1" src="https://unpkg.com/ribbon.js@1.0.2/dist/ribbon.min.js"></script><script src="https://unpkg.com/animejs@3.2.1/lib/anime.min.js"></script><script src="https://unpkg.com/jquery@3.6.0/dist/jquery.min.js"></script><script src="https://unpkg.com/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js"></script><script src="https://unpkg.com/pangu@4.0.7/dist/browser/pangu.min.js"></script><script src="/hexoblog/js/utils.js"></script><script src="/hexoblog/js/motion.js"></script><script src="/hexoblog/js/next-boot.js"></script><script src="/hexoblog/js/bookmark.js"></script><script src="/hexoblog/js/local-search.js"></script><script>var mermaidElements = document.querySelectorAll('.mermaid');
if (mermaidElements.length) {
  NexT.utils.getScript('https://unpkg.com/mermaid@8.9.2/dist/mermaid.min.js', () => {
    mermaidElements.forEach(element => {
      const newElement = document.createElement('div');
      newElement.innerHTML = element.innerHTML;
      newElement.className = element.className;
      element.parentNode.replaceChild(newElement, element);
    });

    mermaid.init({
      theme    : 'default',
      logLevel : 3,
      flowchart: { curve     : 'linear' },
      gantt    : { axisFormat: '%m/%d/%Y' },
      sequence : { actorMargin: 50 }
    }, '.mermaid');
  }, window.mermaid);
}</script><script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><script src="https://unpkg.com/darkmode-js@1.5.7/lib/darkmode-js.min.js"></script><script>var options = {
  bottom: '64px',
  right: 'unset',
  left: '32px',
  time: '0.5s',
  mixColor: 'transparent',
  backgroundColor: 'transparent',
  buttonColorDark: '#100f2c',
  buttonColorLight: '#fff',
  saveInCookies: true,
  label: '🌓',
  autoMatchOsTheme: true
}
const darkmode = new Darkmode(options);
window.darkmode = darkmode;
darkmode.showWidget();</script></body></html>